package com.moi.singleton;

/**
 *
 * 静态内部类
 *
 * 实现了 延迟加载
 */
public class SingletonC  {
    private static class  SingletonHolder{
          private static final  SingletonC singletonC=new SingletonC();
    }
    private SingletonC(){}
    public static final SingletonC getSingletonC(){
        return SingletonHolder.singletonC;
    }

}
